package com.littcore.saap.message.bo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.littcore.saap.common.vo.IUserInfo;
import com.littcore.saap.message.vo.UserMessageStatVo;
import com.littcore.saap.message.vo.UserMessageVo;


/**
 * .
 * 
 * <pre><b>描述：</b>
 *    
 * </pre>
 * 
 * <pre><b>修改记录：</b>
 *    
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">蔡源</a>
 * @since 2015年11月4日
 * @version 1.0
 */
public class UserMessageBo extends UserMessageVo implements Serializable {
  
  /** The Constant serialVersionUID. */
  private static final long serialVersionUID = 1L;
  
  private IUserInfo receiveUser;
  
  /** 用于存放国际化内容（用于呈现）. */
  private Map<String, String> i18n;
  
  /**
   * 添加国际化内容.
   *
   * @param key the key
   * @param value the value
   * @return the user message stat vo
   */
  public UserMessageBo addI18n(String key, String value)
  {
    if(i18n==null)
      i18n = new HashMap<String, String>();
    i18n.put(key, value);
    return this;
  }
  
  public String getI18n(String key)
  {
    if(i18n==null)
      return null;
    return i18n.get(key);
  }
  
  /**
   * @return the receiveUser
   */
  public IUserInfo getReceiveUser()
  {
    return receiveUser;
  }

  
  /**
   * @param receiveUser the receiveUser to set
   */
  public void setReceiveUser(IUserInfo receiveUser)
  {
    this.receiveUser = receiveUser;
  }


  
  /**
   * @return the i18n
   */
  public Map<String, String> getI18n()
  {
    return i18n;
  }

}
